package com.liao.test;

import com.liao.save_info.WriterTemplate;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.io.IOException;
import java.sql.SQLException;

@SpringBootApplication
public class StarterApp {

    public static void main(String[] args) throws IOException, SQLException {
        ConfigurableApplicationContext run = SpringApplication.run(StarterApp.class);
        WriterTemplate writerTemplate = run.getBean(WriterTemplate.class);
        writerTemplate.write("自动配置。。。");
    }
}
